package com.example.AIstudy.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.AIstudy.domain.Question;
import com.example.AIstudy.domain.User;
import com.example.AIstudy.exception.AIstudyException;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectKey;

import java.util.List;
import java.util.Map;

public interface QuestionService extends IService<Question> {

    //获取学生所有的问题水平记录
    public List<Integer> getLevelByStuID(int stuID);

    //新增一个问题信息，并且实现id回填
    void insertQuestion(Question question) throws AIstudyException;

    //分页获取问题信息
    public IPage<Question> findQuestion(Map<String,Object> condition, Integer pageNum, Integer pageSize);

}
